package com.yaodian100.ec.survey.service;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.ec.survey.entity.Survey;
import com.yaodian100.ec.survey.entity.SurveyCoMaping;
import com.yaodian100.ec.survey.entity.SurveyData;

public interface SurveyService extends DomainService<Survey> {

	public List<SurveyData> getListSurveyData(String surveyUuid, String surveyDate) throws ParseException;

	public SurveyCoMaping getSurveyCoMaping(String surveyId);

	public SurveyData saveOrUpdateSurveyData(SurveyData surveyData) throws CoreException;

	public SurveyCoMaping saveOrUpdateSurveyCoMaping(SurveyCoMaping surveyCoMaping) throws CoreException;

	public Survey saveOrUpdateSurvey(Survey entity) throws CoreException;

	public Survey getSurvey(String surveyId) throws IOException;

	public Survey saveOrUpdateSurvey(Survey entity, SurveyCoMaping surveyCoMaping) throws CoreException;
}
